package com.gof.example.decorate;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/6 20:57.
 * haiming.fei@tongdun.cn
 */
public class ThreeEncryption extends EncryptionDecorate {

    public ThreeEncryption(Encryption e) {
        super(e);
    }

    @Override
    String enc(String str) {
        String s = super.enc(str);
        return threeEnc(s);
    }

    private String threeEnc(String str) {
        System.out.println("third encrypt");
        return str;
    }
}
